<?php
/**
 * User: @lixu
 * Date: 2019-05-14
 * Time: 16:17
 */

namespace Biz\module\Search;


use Doraemon\tools\Curl;

class ObjRelateWikiSearch  extends SearchAbstruct
{
    const TYPE_GOODS = 'obj_relate_wiki';

    public static function save($goodsInfo)
    {
        $host = self::getBasicUrl();
        if(!isset($goodsInfo['id'])) {
            return false;
        }
        $res = Curl::Request('POST', $host . '/add', ['form_params' => $goodsInfo]);
        return $res;
    }
}